package com.boot.mgt.service

import com.alibaba.fastjson.JSONObject
import com.boot.core.protocol.ConnRequestOfApp
import com.googlecode.jsonrpc4j.JsonRpcParam
import com.googlecode.jsonrpc4j.JsonRpcService


@JsonRpcService("jrpc")
interface JsonRpcService {

    fun connect(@JsonRpcParam("data") queryReqBean: ConnRequestOfApp.ConnParamsOfApp.Data?, @JsonRpcParam("sign") sign: String?): Any?

    fun connect2(@JsonRpcParam("data") data: ConnRequestOfApp.ConnParamsOfApp.Data?): Any?

    fun connect3(@JsonRpcParam("sign") sign: String?): Any?

    fun connect4(@JsonRpcParam("data") data: String?, @JsonRpcParam("sign") sign: String?): Any?

    fun query(@JsonRpcParam("data") queryReqBean: JSONObject?, @JsonRpcParam("sign") sign: String?): Any?

    fun operate(@JsonRpcParam("data") queryReqBean: String?): Any?

    fun aques(@JsonRpcParam("id") id: String?): Any?

    fun safd(@JsonRpcParam("id") id: String?): Any?

    fun bds(): Any?

}